Skip to content

feat(pydantic-ai): Record gen_ai.output.messages including ThinkingPart - #7037

Merged
alexander-alderman-webb merged 15 commits into
masterfrom
webb/pydantic-ai-reasoning-parts-2
Aug 5, 2026
Merged

feat(pydantic-ai): Record gen_ai.output.messages including ThinkingPart#7037
alexander-alderman-webb merged 15 commits into
masterfrom
webb/pydantic-ai-reasoning-parts-2

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

Set structured gen_ai.output.messages instead of deprecated gen_ai.response.tool_calls and gen_ai.response.text attributes.

Handle previous output types, and additionally ThinkingPart.

Issues

Reminders

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

96984 passed | ⏭️ 6239 skipped | Total: 103223 | Pass Rate: 93.96% | Execution Time: 349m 40s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 92.86%. Project has 2506 uncovered lines.
❌ Project coverage is 89.91%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/pydantic_ai/spans/ai_client.py 91.67% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.95%    89.91%    -0.04%
==========================================
  Files          193       193         —
  Lines        24828     24828         —
  Branches      8930      8930         —
==========================================
+ Hits         22331     22322        -9
- Misses        2497      2506        +9
- Partials      1415      1417        +2

Generated by Codecov Action

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b899589. Configure here.

Comment thread sentry_sdk/integrations/pydantic_ai/spans/ai_client.py Outdated
Comment thread sentry_sdk/integrations/pydantic_ai/spans/ai_client.py Outdated
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/pydantic-ai-reasoning-parts branch from 63cad6f to bff16f3 Compare August 5, 2026 12:24
Base automatically changed from webb/pydantic-ai-reasoning-parts to master August 5, 2026 12:39
@alexander-alderman-webb
alexander-alderman-webb merged commit 3db66a6 into master Aug 5, 2026
140 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/pydantic-ai-reasoning-parts-2 branch August 5, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants